import junit.framework.*;

public class TestTriangle extends TestCase {
	Triangle t1 = new Triangle(5, 2, 1);
	Triangle t2 = new Triangle(1, 5, 2);
	Triangle t3 = new Triangle(1, 2, 5);
	Triangle t4 = new Triangle(8, 8, 8);
//	Triangle t5 = new Triangle(, , );因为有不可能
//	Triangle t6 = new Triangle(, , );
	Triangle t7 = new Triangle(4,4 ,5 );
//	Triangle t8 = new Triangle(, , );
	Triangle t9 = new Triangle(4, 5, 4);
	Triangle t10 = new Triangle(5, 4, 4);
	Triangle t11 = new Triangle(3, 4, 5);
	public void test(){
		assertEquals(1, t1.isTriangle());
		assertEquals(1, t2.isTriangle());
		assertEquals(1, t3.isTriangle());
		assertEquals(3, t4.isTriangle());
		assertEquals(2, t7.isTriangle());
		assertEquals(2, t9.isTriangle());
		assertEquals(2, t10.isTriangle());
		assertEquals(1, t11.isTriangle());
	}
}

